/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * @author 品讯科技
 */

package com.px.pa.modulars.circle.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.px.pa.modulars.circle.vo.SignUserVo;
import com.px.pa.modulars.circle.vo.UserAVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 *
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Data
@TableName("circle_activity")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class CircleActivity extends Model<CircleActivity> {
private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value="")
    private Integer id;
    /**
     * 活动标题
     */
    @ApiModelProperty(value="活动标题")
    private String totle;
    /**
     * 活动图片
     */
    @ApiModelProperty(value="活动图片")
    private String pic;
    /**
     * 活动分类
     */
    @ApiModelProperty(value="活动分类")
    private Integer classes;
    /**
     * 活动标签
     */
    @ApiModelProperty(value="活动标签")
    private String  label;
    /**
     * 是否限制人数（1.开启2.关闭）
     */
    @ApiModelProperty(value="是否限制人数（1.开启2.关闭）")
    private Integer isNumberLimit;
    /**
     * 人数
     */
    @ApiModelProperty(value="人数")
    private Integer peopleNum;

    @ApiModelProperty(value="限制游客人数")
    private Integer outsidersNum;
    /**
     * 报名开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="报名开始时间")
    private LocalDateTime signStartTime;
    /**
     * 报名结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="报名结束时间")
    private LocalDateTime signEndTime;
    /**
     * 活动开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="活动开始时间")
    private LocalDateTime activityStartTime;
    /**
     * 活动结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value="活动结束时间")
    private LocalDateTime activityEndTime;
    /**
     * 地址
     */
    @ApiModelProperty(value="地址")
    private String address;


    @ApiModelProperty(value="详细地址")
    private String detailsAddress;
    /**
     * 详情
     */
    @ApiModelProperty(value="详情")
    private String details;
    /**
     * 经纬度
     */
    @ApiModelProperty(value="经纬度")
    private String positioning;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "类型（1.协会2.个人）")
    private Integer type;
    @ApiModelProperty("活跃度")
    private Integer views;
    @ApiModelProperty(value = "用户id")
    private Integer uid;


    @ApiModelProperty(value = "游客是否可看")
    private Integer isTourists;

    @ApiModelProperty(value = "审核状态")
    private Integer audit;

    @ApiModelProperty(value = "关闭")
    private Integer close;
  //  @ApiModelProperty(value = "报名时间")
    @TableField(exist = false)
    private String signTime[] = new String[2];
    //@ApiModelProperty(value = "活动时间")
    @TableField(exist = false)
    private String activityTime[] = new String[2];
    @TableField(exist = false)
    private String signTimes;
    @TableField(exist = false)
    private String activityTimes;
    @ApiModelProperty(value = "活动类型")
    private Integer activityType;
    @ApiModelProperty(value = "是否废弃")
    private Integer isAbandoned;
    @ApiModelProperty(value = "最少人数")
    private Integer leastPeople;

    @ApiModelProperty(value="租户编码")
    private String tenantCode;
    /**
     * 报名人数是否已满（1.已满2.未满）
     */
    @TableField(exist = false)
    private Integer status;
    /**
     * 已报名人数
     */
    @TableField(exist = false)
    private Integer activitySign;
    @TableField(exist = false)
    private Integer activityStatus;

    @TableField(exist = false)
    private Integer activityRunStatus;

    @TableField(exist = false)
    private Integer signNum;

    @TableField(exist = false)
    private Integer isSignMySelf;
    @TableField(exist = false)
    private Integer signUpNum;
    @TableField(exist = false)
    private List<SignUserVo> signUserVoList;
    @TableField(exist = false)
    private Integer sginStatus;
    @TableField(exist = false)
    private UserAVo userAVo;
    /**
     * 身份（1.活动发起人2.参与者3.游客）
     */
    @TableField(exist = false)
    private Integer identity;


    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String organize;

    }
